﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using com.woodsoft.core.Files;
using System.Text.RegularExpressions;

namespace EQ1.Files {
	public class EQUI:UIFile  {
		#region Constructors
    public EQUI ( string path ):base() {
			if( Regex.IsMatch( path , "(.*\\)([a-zA-Z]*[.xml]*)$" ) ) {
				string dir = Regex.Match( path , "(.*\\)([a-zA-Z]*[.xml]*)$" , RegexOptions.IgnoreCase ).Captures[1].Value;
				this.FilePath = dir + "EQUI.xml";
      } else if( Regex.IsMatch( path , "(.*\\)" ) ) {
        this.FilePath = path;
      } else {
        this.FilePath = path + "\\";
      }  
		}
		#endregion

		#region Variables

		#endregion

		#region Properties

		#endregion

		#region SubRoutines

		#endregion

		#region Functions

		#endregion
	}
}
